.class public abstract Lnbisdk/ia;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lnbisdk/ia$a;
    }
.end annotation


# instance fields
.field protected ca:Lcom/nbi/common/NBIContext;

.field protected el:Lcom/nbi/location/LocationListener;

.field protected sn:Lnbisdk/gn;

.field protected so:Lnbisdk/or;

.field protected sp:Lcom/nbi/location/Location;

.field protected sq:J

.field protected sr:Z

.field private ss:Lcom/nbi/location/LocationListener;

.field protected st:Z

.field protected su:Z

.field protected sv:J

.field private sw:Ljava/util/Timer;

.field protected sx:Z

.field protected final sy:Ljava/lang/Runnable;

.field protected final sz:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V
    .locals 4

    const-wide/16 v2, 0x0

    const/4 v1, 0x0

    const/4 v0, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lnbisdk/ia;->sn:Lnbisdk/gn;

    iput-object v0, p0, Lnbisdk/ia;->so:Lnbisdk/or;

    iput-object v0, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    iput-object v0, p0, Lnbisdk/ia;->sp:Lcom/nbi/location/Location;

    iput-object v0, p0, Lnbisdk/ia;->ca:Lcom/nbi/common/NBIContext;

    iput-wide v2, p0, Lnbisdk/ia;->sq:J

    iput-boolean v1, p0, Lnbisdk/ia;->sr:Z

    iput-object v0, p0, Lnbisdk/ia;->ss:Lcom/nbi/location/LocationListener;

    iput-boolean v1, p0, Lnbisdk/ia;->st:Z

    iput-boolean v1, p0, Lnbisdk/ia;->su:Z

    iput-wide v2, p0, Lnbisdk/ia;->sv:J

    iput-object v0, p0, Lnbisdk/ia;->sw:Ljava/util/Timer;

    iput-boolean v1, p0, Lnbisdk/ia;->sx:Z

    new-instance v0, Lnbisdk/c;

    invoke-direct {v0, p0}, Lnbisdk/c;-><init>(Lnbisdk/ia;)V

    iput-object v0, p0, Lnbisdk/ia;->sy:Ljava/lang/Runnable;

    new-instance v0, Lnbisdk/e;

    invoke-direct {v0, p0}, Lnbisdk/e;-><init>(Lnbisdk/ia;)V

    iput-object v0, p0, Lnbisdk/ia;->sz:Ljava/lang/Runnable;

    if-eqz p1, :cond_0

    if-nez p2, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iput-object p1, p0, Lnbisdk/ia;->ca:Lcom/nbi/common/NBIContext;

    iput-object p2, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    goto :goto_0
.end method

.method protected static aV(I)I
    .locals 2

    const/16 v1, 0x2346

    const/16 v0, 0xfa3

    if-ne p0, v1, :cond_1

    move v0, v1

    :cond_0
    :goto_0
    return v0

    :cond_1
    if-eq p0, v0, :cond_0

    move v0, p0

    goto :goto_0
.end method

.method private static jd()Lnbisdk/bt;
    .locals 3

    const/4 v2, 0x0

    const/4 v0, 0x0

    const/4 v1, 0x0

    :try_start_0
    invoke-static {v0, v1}, Lcom/nbi/location/LocationProvider;->getInstance(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationConfig;)Lcom/nbi/location/LocationProvider;

    move-result-object v0

    check-cast v0, Lnbisdk/gf;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lnbisdk/gf;->jd()Lnbisdk/bt;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    if-eqz v0, :cond_2

    :cond_0
    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    :cond_1
    move-object v0, v2

    :cond_2
    if-nez v0, :cond_0

    invoke-static {}, Lcom/nbi/location/LocationConfig;->createLocationConfig()Lcom/nbi/location/LocationConfig;

    move-result-object v0

    check-cast v0, Lnbisdk/bt;

    goto :goto_0
.end method


# virtual methods
.method public final a(Lcom/nbi/location/LocationListener;)V
    .locals 0

    iput-object p1, p0, Lnbisdk/ia;->ss:Lcom/nbi/location/LocationListener;

    return-void
.end method

.method public abstract aS()Z
.end method

.method public final aU(I)V
    .locals 3

    const/4 v2, 0x1

    iget-boolean v0, p0, Lnbisdk/ia;->st:Z

    if-ne v0, v2, :cond_3

    const/16 v0, 0x7d0

    :goto_0
    iget-boolean v1, p0, Lnbisdk/ia;->su:Z

    if-ne v1, v2, :cond_0

    const/16 v0, 0x2349

    :cond_0
    iget-boolean v1, p0, Lnbisdk/ia;->st:Z

    if-ne v1, v2, :cond_2

    iget-boolean v1, p0, Lnbisdk/ia;->su:Z

    if-ne v1, v2, :cond_2

    invoke-virtual {p0}, Lnbisdk/ia;->ju()V

    iget-object v1, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    invoke-interface {v1, v0}, Lcom/nbi/location/LocationListener;->onLocationError(I)V

    :cond_1
    invoke-virtual {p0}, Lnbisdk/ia;->cancel()Z

    :cond_2
    return-void

    :cond_3
    move v0, p1

    goto :goto_0
.end method

.method public cancel()Z
    .locals 3

    const/4 v2, 0x0

    const/4 v1, 0x1

    invoke-virtual {p0}, Lnbisdk/ia;->ju()V

    iput-boolean v1, p0, Lnbisdk/ia;->sx:Z

    iget-object v0, p0, Lnbisdk/ia;->so:Lnbisdk/or;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ia;->so:Lnbisdk/or;

    invoke-interface {v0}, Lnbisdk/or;->jO()Z

    move-result v0

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lnbisdk/ia;->so:Lnbisdk/or;

    invoke-interface {v0}, Lnbisdk/or;->cancel()V

    :cond_0
    iput-object v2, p0, Lnbisdk/ia;->so:Lnbisdk/or;

    iget-object v0, p0, Lnbisdk/ia;->sn:Lnbisdk/gn;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/ia;->sn:Lnbisdk/gn;

    invoke-interface {v0}, Lnbisdk/gn;->bj()Z

    :cond_1
    iput-object v2, p0, Lnbisdk/ia;->sn:Lnbisdk/gn;

    iput-object v2, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    return v1
.end method

.method public final d(Lcom/nbi/location/Location;)V
    .locals 1

    if-eqz p1, :cond_0

    iget-object v0, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    invoke-interface {v0, p1}, Lcom/nbi/location/LocationListener;->locationUpdated(Lcom/nbi/location/Location;)V

    :cond_0
    return-void
.end method

.method protected finalize()V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ia;->el:Lcom/nbi/location/LocationListener;

    invoke-virtual {p0}, Lnbisdk/ia;->cancel()Z

    return-void
.end method

.method protected final i(J)Z
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lnbisdk/ia;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v0}, Lnbisdk/bd;->d(Lcom/nbi/common/NBIContext;)Lnbisdk/cj;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-interface {v0}, Lnbisdk/cj;->bg()Lcom/nbi/location/Location;

    move-result-object v1

    iput-object v1, p0, Lnbisdk/ia;->sp:Lcom/nbi/location/Location;

    invoke-interface {v0}, Lnbisdk/cj;->bf()J

    move-result-wide v0

    cmp-long v0, v0, p1

    if-gez v0, :cond_1

    iget-object v0, p0, Lnbisdk/ia;->sp:Lcom/nbi/location/Location;

    if-eqz v0, :cond_1

    invoke-static {}, Lnbisdk/gi;->fk()Lnbisdk/gi;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lnbisdk/ia;->sy:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Lnbisdk/gi;->a(Ljava/lang/Runnable;)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    move v0, v2

    goto :goto_0

    :cond_1
    move v0, v2

    goto :goto_0
.end method

.method public final jk()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const/16 v0, 0x7530

    return v0
.end method

.method public final jl()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const/16 v0, 0x3a98

    return v0
.end method

.method public final jm()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const/16 v0, 0x7d0

    return v0
.end method

.method public final jn()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const/16 v0, 0x3e8

    return v0
.end method

.method public final jo()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const/16 v0, 0x1f40

    return v0
.end method

.method public final jp()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const v0, 0x1d4c0

    return v0
.end method

.method public final jq()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const/16 v0, 0x3a98

    return v0
.end method

.method public final jr()I
    .locals 1

    invoke-static {}, Lnbisdk/ia;->jd()Lnbisdk/bt;

    const/16 v0, 0x3a98

    return v0
.end method

.method public final js()Lcom/nbi/location/LocationListener;
    .locals 1

    iget-object v0, p0, Lnbisdk/ia;->ss:Lcom/nbi/location/LocationListener;

    return-object v0
.end method

.method protected final jt()V
    .locals 4

    invoke-virtual {p0}, Lnbisdk/ia;->ju()V

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lnbisdk/ia;->sw:Ljava/util/Timer;

    iget-object v0, p0, Lnbisdk/ia;->sw:Ljava/util/Timer;

    new-instance v1, Lnbisdk/ia$a;

    invoke-direct {v1, p0}, Lnbisdk/ia$a;-><init>(Lnbisdk/ia;)V

    iget-wide v2, p0, Lnbisdk/ia;->sv:J

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    return-void
.end method

.method protected final ju()V
    .locals 1

    iget-object v0, p0, Lnbisdk/ia;->sw:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ia;->sw:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ia;->sw:Ljava/util/Timer;

    :cond_0
    return-void
.end method
